/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author alex
 */

public class HeapSortS extends HeapSort
{
    public HeapSortS(int N,String filename)
    {
        super(N,filename);
    }
    
    public void buildHeap(int L[])
    {
       int i = 0;
       while(i<L.length)
       {
           super.insert(L[i]);
           i++;
       }        
       while(last>0)
       {
           extractMax();
       }
    }
    
    @Override
    public void extractMax()
    {
        super.extractMinEstandar();
    }    
}
